<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="${res}/js/review/evpublic.js"></script>
<title>正式库申请项目检索</title>

</head>
<body>
<div class="layer_green">
	<h2 style="padding-top: 5px;">正式库申请项目检索</h2>		
	<br/>
	<div class="soBox">
		<div class="detail ico_search">
			<table>
				<tr>
					<td rowspan="2"><strong>检索条件：</strong>
					</td>
					<td>
						<cpt:search key="prpSearch"  repeatColumn="3" displayCount="3" leftStyle="width:100px" sqlConditionStr="${queryorgcode}"></cpt:search>
					</td>
				
				</tr>
				<tr>
				<td>
					<div class="clear_h10"></div>
					<input type='button' id='searchBt' class="button_an" value='查询' />
				</td>
				</tr>
				
			</table>
		</div>
	</div>
	
	<div class="clear_h10"></div>
	<div>
		<div id='TopBarMnt1'></div>
		<table id='dataGrid1'></table>
		<div id='dataBar1'></div>
	</div>
</div>	

<script type="text/javascript">
	
	var irisGrid;
	function buildGrid() {
		irisGrid = new IrisGrid("dataGrid1", "dataBar1", 'TopBarMnt1');

		var columnAttrList = new Array();

		var columnAttr1 = new ColumnAttr("科学部编号", "prpNo", "prpNo", 1,
				"left", true);
		columnAttrList.push(columnAttr1);
		var columnAttr2 = new ColumnAttr("申请代码1", "prpCode", "prpCode", 1,
				"left", true);
		columnAttrList.push(columnAttr2);
		
		var columnAttr13 = new ColumnAttr("申请项目名称", "zhTitle", "zhTitle", 2,
				"left", true);
		columnAttrList.push(columnAttr13);
		
		var columnAttr4 = new ColumnAttr("资助类别", "grantName", "grantName", 2,
				"left", true);
		columnAttrList.push(columnAttr4);

		var columnAttr5 = new ColumnAttr("亚类说明", "subGrantName", "subGrantName", 1, "center", true);
		columnAttrList.push(columnAttr5);

		var columnAttr6 = new ColumnAttr("附注说明", "helpGrantName", "helpGrantName", 1,
				"center", true);
		columnAttrList.push(columnAttr6);

		var columnAttr7 = new ColumnAttr("申请人姓名", "psnName", "psnName", 2,
				"center", true);
		columnAttrList.push(columnAttr7);

		var columnAttr8 = new ColumnAttr("依托单位", "orgName", "orgName", 2,
				"center", true);
		columnAttrList.push(columnAttr8);

		var columnAttr9 = new ColumnAttr("申请金额（按万元计）", "totalAmt", "totalAmt", 1,
				"center", true);
		columnAttrList.push(columnAttr9);

		var columnAttr10 = new ColumnAttr("下载申请书", "pdfFileCode", "pdfFileCode", 1, "center",
				true);
		columnAttrList.push(columnAttr10);

		

		irisGrid.setColumnAttrs(columnAttrList);
		irisGrid.setHeaderAutoWrap(true);
		
		
		irisGrid.setUrl("${ctx}/prpapprove/prpofficialgrid");
		irisGrid.setCaption("检索正式库申请项目");
		irisGrid.setDefaultSortName("prpNo");
		irisGrid.setWidth(956);
		irisGrid.setCheckAble(false);
		irisGrid.setShowRowIndex(true);
		irisGrid.setQueryBox('searchBt', 'prpSearch', [""]);
		irisGrid.build();
	}

	jQuery(function() {
		//queryflex();
		buildGrid();
		
	});
</script>

</body>
</html>